MaximalBy
MaximalBy[data,f] returns a list of the elements ei of data for which the value of f[ei] is maximal.
MaximalBy[data,f,n] returns a list of the elements ei of data corresponding to the n largest f[ei].
MaximalBy[data,f,n,p] uses the ordering function p for sorting.
MaximalBy[f] represents an operator form of MaximalBy that can be applied to an expression.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.